package factorialSum;

public class Factorial {
    public static long getFactorial(long n,long result){
        result*=n;
        if(n==1){
            return result;
        }else{
            return getFactorial(n-1,result);
        }
    }
}
